
package cn.edu.scau.cmi.hombio.dao;

import cn.edu.scau.cmi.hombio.domain.PreventionType;

import java.math.BigDecimal;

import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;

import org.springframework.dao.DataAccessException;

/**
 * DAO to manage PreventionType entities.
 * 
 */
public interface PreventionTypeDAO extends JpaDao<PreventionType> {

	/**
	 * JPQL Query - findPreventionTypeByMemo
	 *
	 */
	public Set<PreventionType> findPreventionTypeByMemo(String memo) throws DataAccessException;

	/**
	 * JPQL Query - findPreventionTypeByMemo
	 *
	 */
	public Set<PreventionType> findPreventionTypeByMemo(String memo, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPreventionTypeByReportQuality
	 *
	 */
	public Set<PreventionType> findPreventionTypeByReportQuality(Integer reportQuality) throws DataAccessException;

	/**
	 * JPQL Query - findPreventionTypeByReportQuality
	 *
	 */
	public Set<PreventionType> findPreventionTypeByReportQuality(Integer reportQuality, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPreventionTypeById
	 *
	 */
	public PreventionType findPreventionTypeById(Integer id) throws DataAccessException;

	/**
	 * JPQL Query - findPreventionTypeById
	 *
	 */
	public PreventionType findPreventionTypeById(Integer id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPreventionTypeByName
	 *
	 */
	public Set<PreventionType> findPreventionTypeByName(String name) throws DataAccessException;

	/**
	 * JPQL Query - findPreventionTypeByName
	 *
	 */
	public Set<PreventionType> findPreventionTypeByName(String name, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPreventionTypeByQuality
	 *
	 */
	public Set<PreventionType> findPreventionTypeByQuality(java.math.BigDecimal quality) throws DataAccessException;

	/**
	 * JPQL Query - findPreventionTypeByQuality
	 *
	 */
	public Set<PreventionType> findPreventionTypeByQuality(BigDecimal quality, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPreventionTypeByMemoContaining
	 *
	 */
	public Set<PreventionType> findPreventionTypeByMemoContaining(String memo_1) throws DataAccessException;

	/**
	 * JPQL Query - findPreventionTypeByMemoContaining
	 *
	 */
	public Set<PreventionType> findPreventionTypeByMemoContaining(String memo_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPreventionTypeByNameContaining
	 *
	 */
	public Set<PreventionType> findPreventionTypeByNameContaining(String name_1) throws DataAccessException;

	/**
	 * JPQL Query - findPreventionTypeByNameContaining
	 *
	 */
	public Set<PreventionType> findPreventionTypeByNameContaining(String name_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAllPreventionTypes
	 *
	 */
	public Set<PreventionType> findAllPreventionTypes() throws DataAccessException;

	/**
	 * JPQL Query - findAllPreventionTypes
	 *
	 */
	public Set<PreventionType> findAllPreventionTypes(int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPreventionTypeByPrimaryKey
	 *
	 */
	public PreventionType findPreventionTypeByPrimaryKey(Integer id_1) throws DataAccessException;

	/**
	 * JPQL Query - findPreventionTypeByPrimaryKey
	 *
	 */
	public PreventionType findPreventionTypeByPrimaryKey(Integer id_1, int startResult, int maxRows) throws DataAccessException;

}